package com.eling.elcms.community.model;

import com.eling.elcms.core.dao.annotation.In;
import com.eling.elcms.core.model.BaseModel;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;

import javax.persistence.*;

/**
 * 机构个性化定制
 * @author liuying
 *
 */
@Entity
@Table(name = "cm_orgcustomization")
@Indexed
public class OrgCustomization extends BaseModel {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = -204045099744473788L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
    @In
    private Long pkOrgCustomization;
	
	/** 机构*/
	@OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "pkOrganization")
    private Organization organization;

    /** 主题 */
    @Column
    @Field
    private String theme;
    
    /**  小壹秘书名称*/
    @Column
    @Field
    private String secreName;
    
    /**  短信签名*/
    @Column
    @Field
    private String smsSignNum;
    
    /**  用户名唯一性校验范围*/
    @Column
    @Field
    private String uniqueRange;
    
    /**  特殊地图标识*/
    @Column
    @Field
    private String mapId;
    
    /** 停用服务包过滤 （是：能看到所有节点，不根据服务包过滤）*/
    @Column(nullable = false)
	@Field
	private Boolean stopSvcPkgFilter;
    
    /**小壹秘书app二维码路径*/
    @Column(length = 255)
    private String secretaryAppTwoDimCodeUrl;
    
    /**小壹服务app二维码路径*/
    @Column(length = 255)
    private String serviceAppTwoDimCodeUrl;

    
    @Version
    private Integer version;

	public Long getPkOrgCustomization() {
		return pkOrgCustomization;
	}

	public void setPkOrgCustomization(Long pkOrgCustomization) {
		this.pkOrgCustomization = pkOrgCustomization;
	}

	public Organization getOrganization() {
		return organization;
	}
	
	public Boolean getStopSvcPkgFilter() {
		return stopSvcPkgFilter;
	}
	
	public void setStopSvcPkgFilter(Boolean stopSvcPkgFilter) {
		this.stopSvcPkgFilter = stopSvcPkgFilter;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getSecreName() {
		return secreName;
	}

	public void setSecreName(String secreName) {
		this.secreName = secreName;
	}

	public String getSmsSignNum() {
		return smsSignNum;
	}

	public void setSmsSignNum(String smsSignNum) {
		this.smsSignNum = smsSignNum;
	}

	public String getMapId() {
		return mapId;
	}

	public void setMapId(String mapId) {
		this.mapId = mapId;
	}

	public String getUniqueRange() {
		return uniqueRange;
	}

	public void setUniqueRange(String uniqueRange) {
		this.uniqueRange = uniqueRange;
	}

	public String getSecretaryAppTwoDimCodeUrl() {
		return secretaryAppTwoDimCodeUrl;
	}

	public void setSecretaryAppTwoDimCodeUrl(String secretaryAppTwoDimCodeUrl) {
		this.secretaryAppTwoDimCodeUrl = secretaryAppTwoDimCodeUrl;
	}

	public String getServiceAppTwoDimCodeUrl() {
		return serviceAppTwoDimCodeUrl;
	}

	public void setServiceAppTwoDimCodeUrl(String serviceAppTwoDimCodeUrl) {
		this.serviceAppTwoDimCodeUrl = serviceAppTwoDimCodeUrl;
	}
	
	
	
}
